package com.woniuxy.company5.service.impl;

import com.woniuxy.company5.entity.RepGoodlists;
import com.woniuxy.company5.mapper.RepGoodlistsMapper;
import com.woniuxy.company5.service.RepGoodlistsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RepGoodlistsServiceImpl implements RepGoodlistsService {
    @Resource
    private RepGoodlistsMapper repGoodlistsMapper;
    @Override
    public int insert(RepGoodlists record) {
        return repGoodlistsMapper.insertSelective(record);
    }

    @Override
    public List<RepGoodlists> selAllGoodReps() {
        return repGoodlistsMapper.selAllGoodReps();
    }

    @Override
    public List<RepGoodlists> selGoodRepsByNum(String num) {
        return repGoodlistsMapper.selGoodRepsByNum(num);
    }
}
